package com.hee.erp.modules.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.hee.erp.enums.AuditStatusEnum;
import com.hee.erp.enums.WorkflowNodeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author weizehong
 * @since 2022-05-18
 */
@Getter
@Setter
@TableName("t_audit_flow")
@ApiModel(value = "AuditFlow对象", description = "")
public class AuditFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    private String parentId;

    @ApiModelProperty("审核主表的id")
    @TableField("audit_main_id")
    private String auditMainId;

    @ApiModelProperty("审核人id")
    @TableField("auditor_user_id")
    private String auditorUserId;

    @ApiModelProperty("审核状态")
    @TableField("audit_status")
    private AuditStatusEnum auditStatus;

    @ApiModelProperty("审核时间")
    @TableField("audit_time")
    private LocalDateTime auditTime;

    @ApiModelProperty("审核备注，通过或者驳回原因")
    @TableField("audit_remark")
    private String auditRemark;

    private WorkflowNodeTypeEnum nodeType;

    private String nodeName;

    @TableField(value = "create_user",fill = FieldFill.INSERT)
    private String createUser;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "modify_user",fill = FieldFill.INSERT_UPDATE)
    private String modifyUser;

    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;


}
